import request from '@/utils/request'

// 封装渲染页面
export const getListEtpAPI = (params) => {
  return request.get('/park/enterprise', { params })
}

// 封装企业所属行业列表
export const getListExpandAPI = (id) => {
  return request.get(`/park/enterprise/rent/${id}`)
}

// 封装添加企业
export const addEnterAPI = (data) => {
  // return request.post('/park/enterprise', data:{})
  return request({
    url: '/park/enterprise',
    method: 'post',
    data
  })
}

// 园区管理-查询企业所属行业列表
export const getTradeListAPI = () => {
  return request.get('/park/industry')
}

// 上传图片接口
export const imageUploadAPI = (data) => {
  return request.post('/upload', data)
}
